
package com.jf.cloud.supplier.mapper;


import com.jf.cloud.supplier.dto.SupplierCompanyAuditingDTO;
import com.jf.cloud.supplier.model.SupplierCompanyAuditing;
import com.jf.cloud.supplier.vo.SupplierCompanyAuditingVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author zz
 * @date 2022/9/13 14:42
 */

public interface CompanyAuditingMapper {

    /**
     * 根据信息id获取供应商工商审核信息
     *
     * @param supplierCompanyAuditingId 供应商工商审核信息id
     * @return 供应商工商审核信息
     */
    SupplierCompanyAuditing getById(@Param("supplierCompanyAuditingId") Long supplierCompanyAuditingId);

    /**
     * 新增供应商工商审核信息
     * @param supplierCompanyAuditing 供应商工商审核信息
     */
    void insert(@Param("supplierCompanyAuditing") SupplierCompanyAuditing supplierCompanyAuditing);

    /**
     * 更新供应商工商审核信息
     * @param supplierCompanyAuditing 供应商工商审核信息
     */
    void update(@Param("supplierCompanyAuditing") SupplierCompanyAuditing supplierCompanyAuditing);

    /**
     * 根据供应商工商信息id删除供应商工商信息
     * @param supplierCompanyAuditingId
     */
    void deleteById(@Param("supplierCompanyAuditingId") Long supplierCompanyAuditingId);

    /**
     * 根据供应商id获取最近一条工商审核信息
     * @param supplierId
     * @return
     */
    SupplierCompanyAuditingVO getLatestAuditingBySupplierId(@Param("supplierId") Long supplierId);

    /**
     * 获取待审核的工商信息
     *
     * @param supplierCompanyAuditingDTO 搜索参数
     * @return
     */
    List<SupplierCompanyAuditingVO> list(@Param("supplierCompanyAuditingDTO") SupplierCompanyAuditingDTO supplierCompanyAuditingDTO);
}
